﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CaptchaControlAjaxRequest.aspx.vb" Inherits="Website.CaptchaControlAjaxRequest" %>
<script runat="server">
Protected Sub Page_Init(sender As Object, e As EventArgs)
	If Request.QueryString("actionName") = "Regenerate" Then
		If Session("captchaCharactersTypes") IsNot Nothing Then
			Dim text As String = Tal.CaptchaControl.TextManager.GenerateText()
			Dim path As String = Tal.CaptchaControl.ImageManager.WriteImage(text)
			Session("captcha_image_text") = text
			Response.Write(path)
			Response.[End]()
		End If
	End If
End Sub
</script>